package com.yanqu.road.entity.log.springunionbanquet;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.ServerBaseLog;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_ck_spring_union_banquet_join", autoSave = true, dataUpload = true, eventName = "dinner_join",uploadCk = true,desc = "屠苏宴饮-参加")
public class LogSpringUnionBanquetJoin extends ServerBaseLog {

    @FieldTypeAnnotation(desc = "活动ID", isIndex = true, dataAttribute = "activityid", select = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "用户ID", isIndex = true)
    private long userId;

    @FieldTypeAnnotation(desc = "参加id")
    private long joinId;

    @FieldTypeAnnotation(desc = "宴请id", dataAttribute = "dinner_id")
    private long banquetId;

    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "dinner_reward")
    private String reward;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    public LogSpringUnionBanquetJoin(int activityId, long userId, long joinId, long banquetId, String reward) {
        this.activityId = activityId;
        this.userId = userId;
        this.joinId = joinId;
        this.banquetId = banquetId;
        this.reward = reward;
        this.logTime = new Date();
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    @Override
    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public long getJoinId() {
        return joinId;
    }

    public void setJoinId(long joinId) {
        this.joinId = joinId;
    }

    public long getBanquetId() {
        return banquetId;
    }

    public void setBanquetId(long banquetId) {
        this.banquetId = banquetId;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }
}
